package com.fire.control.system.statics;

/**
* @ClassName: Type_Warning
* @Description: TODO(报警类型)
* @author wanbo
* @date 2017年7月5日 上午9:33:34
*/
public enum Type_Warning {
	
	fire_alarm("火警报警"),device_fault("故障报警");
	
	private String text;
	
	private Type_Warning(String text){
		this.text = text;
	}
	public String getText() {
		return text;
	}
	
	public static String getText(String key){
		Type_Warning[] s  = Type_Warning.values();
		for (Type_Warning obj : s) {
			if(key.equals(obj.toString()))return obj.getText();
		}
		return "";
	}
	
}
